package com.zzxz.practicaltrainingsys.service;

import com.zzxz.practicaltrainingsys.entity.Major;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface MajorService {
    List<Major> getMajor();

    // 新增
    boolean addMajor(Major major);

    // 根据ID查找
    Major getMajorById(Integer major_id);
    //更新
    public int updateMajor(Major major);

    //根据学院编号查找专业名称
    List<Major> getMajorByCollegeId(Integer college_id);
}